package net.huashitong.Project.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sirdc.modules.core.dao.BaseDao;
import com.sirdc.modules.sys.base.StringPKService;

import net.huashitong.Project.dao.ProIndustryTypeDao;
import net.huashitong.Project.entity.ProIndustryType;

@Service
public class ProIndustryTypeService extends StringPKService<ProIndustryType> {

	@Autowired
	private ProIndustryTypeDao dao;
	
	@Override
	protected BaseDao<ProIndustryType, String> getDao() {
		return dao;
	}
	public ProIndustryType queryByTypeCode(String typeCode){
		return dao.queryByTypeCode(typeCode);
	}
	public  List<ProIndustryType> queryByType(String type){
		return dao.queryByType(type);
	}
}
